package com.job.client.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.job.client.common.result.ResponseResult;
import com.job.client.model.auth.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface AuthService extends IService<User> {
    /*
    * 获得图形验证码
    * */
     ResponseResult getImgCode(HttpServletResponse response, HttpServletRequest request);
    /*
     * 检查图形验证码
     * */
     ResponseResult checkImgCode(String code, HttpServletRequest request);

    ResponseResult sendSmsCode(String phone, HttpServletRequest request);

    ResponseResult checkSmsCode(String code,String phone, HttpServletRequest request);

    ResponseResult register(User user);

    ResponseResult login(User user);

    ResponseResult getUserInfo(HttpServletRequest request);

    ResponseResult uploadAvatar(MultipartFile file,String Authorization);

    ResponseResult updateAvatar(User user);

    ResponseResult addDuties(String duties,HttpServletRequest request);

    ResponseResult addCompany(String company, HttpServletRequest request);

    ResponseResult getUserInfoById(String userId);

    ResponseResult authentication(String companyId,String userId,String companyName);

    ResponseResult logout(String userId);

    ResponseResult getCompanyByUserId(String userId);

}
